<template>
  <div class="TContent h-full">
    <el-card shadow="none" class="h-full">
      <template #header>
        <div class="flex w-full flex-row items-center justify-between">
          <div class="h-[28px] text-[20px] font-medium leading-[28px] text-[#363F51]">{{ title }}</div>
          <!-- <img src="@/assets/images/back.png" alt="" class="h-[40px] w-[40px]" @click="handleClose" /> -->
          <!--
            <div class="h-[22px] text-[14px] font-normal leading-[22px] text-[#1D7FF2]" @click="handleClose">
            <i class="el-icon-arrow-left"></i>
            返回
            </div> 
          -->
        </div>
      </template>
      <slot name="content"></slot>
    </el-card>
  </div>
</template>

<script>
import vModelMixin from "@/mixin/v-model";

export default {
  name: "TContent",
  mixins: [vModelMixin],
  props: {
    title: {
      type: String,
      required: true,
      default: "",
    },
  },
  methods: {
    handleClose() {
      this.innerValue = false;
    },
  },
};
</script>

<style scoped lang="scss">
.TContent {
  :deep(.el-card__body) {
    height: 100%;
    padding-top: 0;
  }
}
</style>
